You are here: Statements and Functions > DynPlot()
Syntax samples
DYNPLOT "<chart name>"
DYNPLOT "my dynamic plot name"
DYNPLOT "Chart 1"
DYNPLOT ""
The DynPlot statement is used to automatically turn on predefined Dynamic Plot windows. Its usage is similar to that of the View statement. Dynamic Plot windows are predefined during simulation mode. These predefined Chart views can then be called from any logic statement, invoking the display of the designated chart during simulation.
Any Logic.
Components
<Chart name>
The name of the Dynamic Plot chart as defined in the Dynamic Plots dialog. Enclose the name in quotation marks.
Example
You are giving a presentation to management. Two hours into the simulation, you want a chart to be displayed showing the value of a WIP variable plotted against average part cost. Four hours into the simulation, you want this chart to disappear.
To do this, define a Chart view from the Dynamic Plots dialog, naming your Chart view "WIP vs Cost." Define a subroutine and call it in the initialization logic using the ACTIVATE statement. Enter the following logic in the subroutine:
WAIT 2 HR
DYNPLOT "Wip vs Cost"
Wait 2 HR
DYNPLOT ""
Please note
Using the statement with a null value (no name defined between the quotation marks) will close all currently open Dynamic Plot windows.